package com.hrabbit.admin.modual.system.service.impl;

import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.hrabbit.admin.modual.system.bean.SysUser;
import com.hrabbit.admin.modual.system.mapper.SysUserMapper;
import com.hrabbit.admin.modual.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 系统用户业务层
 * @Auther: hrabbit
 * @Date: 2018-12-19 12:01 PM
 * @Description:
 */
@Service
@SuppressWarnings("all")
public class SysUserServiceImpl extends ServiceImpl<SysUserMapper,SysUser> implements SysUserService {

    @Autowired
    private SysUserMapper sysUserMapper;

    /**
     * 根据id获取用户信息
     * @param id
     * @return
     */
    @Override
    public SysUser findSysUserById(Long id){
        return sysUserMapper.findSysUserById(id);
    }

    /**
     * 调用mybatis-plus中的根据id查询数据
     * @param id
     * @return
     */
    @Override
    public SysUser selectById(Long id){
        return sysUserMapper.selectById(id);
    }

}
